package 泛型;

public class Point1<T,E> {
    private T x;
    private E y;

    public T getX() {
        return x;
    }

    public void setX(T x) {
        this.x = x;
    }

    public E getY() {
        return y;
    }

    public void setY(E y) {
        this.y = y;
    }


    public static void main(String[] args) {
        Point1<String,Integer> point1 = new Point1<>();
        point1.setX("nihao");
        point1.setY(100);

        Point1<String,String> point11 = new Point1<>();
        point11.setX("王八蛋");
        point11.setY("王八蛋");
    }
}
